﻿
using System.Collections.ObjectModel;
using System.ComponentModel;
namespace LinkED_WP
{
    public enum LinkED_MSG_TYPE
    {   LBTN_CLICKED = 0, 
        LBTN_DOUBLE_CLICKED = 1, 
        RBTN_CLICKED = 2, 
        MOUSE_MOVE = 3, 
        CENTER_SCROLL = 4,
        LEFT_DRAG = 5,
        SHOW_DESKTOP = 6,
        OPEN_START_MENU = 7,
        OPEN_COMPUTER = 8,
        OPEN_IE_BROWSER = 9,
        OPEN_CACULATOR = 10,
        OPEN_MUSIC_PALYER = 11,
        OPEN_CONTROL_PANEL = 12,
        OPEN_TECENT_QQ = 13,
        OPEN_RECYCLE_BIN = 14,
        OPEN_MY_DOCS = 15
    };

    public class SreenPos
    {
        public int x;
        public int y;
        public LinkED_MSG_TYPE msg_type;

        public SreenPos()
        {
            x = 0;
            y = 0;
            msg_type = LinkED_MSG_TYPE.MOUSE_MOVE;
        }
    };

    public class AllPCListBoxPresenter : INotifyPropertyChanged
    {
        private ObservableCollection<LinkED_PCItem> _PCItems;

        public ObservableCollection<LinkED_PCItem> PCItems
        {
            get
            {
                return _PCItems;
            }
            set
            {
                if (_PCItems != value)
                {
                    _PCItems = value;
                    NotifyPropertyChanged("PCItems");
                }
            }
        }

        #region INotifyPropertyChanged Members

        public event PropertyChangedEventHandler PropertyChanged;

        // Used to notify Silverlight that a property has changed.
        private void NotifyPropertyChanged(string propertyName)
        {
            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }
        #endregion


    };

}
